
<%@ page import="dex.micros_gdc.Task" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'task.label', default: 'Task')}" />
		<g:set var="taskEntityName" value="${message(code: 'task.label', default: 'Back Task')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
		<script>
			function resetMainWindowsSize(){
				var x=document.getElementsByTagName("html");

				x[0].style.width = "100%";
		    }

			resetMainWindowsSize();
		</script>
	</head>
	<body>
		<g:set var="pN" value="${params.projectName}" />
		<g:set var="dev" value="${params.developer}" />
		<g:set var="qa" value="${params.tester}" />
		<g:set var="pts" value="${params.ts}" />
		<a href="#show-task" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><g:link class="list" action="list" params="[projectName:[pN], developer:[dev], tester:[qa], ts:[pts]]"><g:message code="default.list.label" args="[taskEntityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-task" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list task">

				<g:if test="${taskInstance?.projectName}">
				<li class="fieldcontain">
					<span id="projectName-label" class="property-label"><g:message code="task.projectName.label" default="Project Name" /></span>

						<span class="property-value" aria-labelledby="projectName-label"><g:fieldValue bean="${taskInstance}" field="projectName"/></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.activityNumber}">
				<li class="fieldcontain">
					<span id="activityNumber-label" class="property-label"><g:message code="task.activityNumber.label" default="Activity Number" /></span>

						<span class="property-value" aria-labelledby="activityNumber-label"><g:fieldValue bean="${taskInstance}" field="activityNumber"/></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.feedbackNumber}">
				<li class="fieldcontain">
					<span id="feedbackNumber-label" class="property-label"><g:message code="task.feedbackNumber.label" default="Feedback Number" /></span>

						<span class="property-value" aria-labelledby="feedbackNumber-label"><g:fieldValue bean="${taskInstance}" field="feedbackNumber"/></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.description}">
				<li class="fieldcontain">
					<span id="description-label" class="property-label"><g:message code="task.description.label" default="Description" /></span>

						<span class="property-value" aria-labelledby="description-label"><g:fieldValue bean="${taskInstance}" field="description"/></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.actionType}">
				<li class="fieldcontain">
					<span id="priority-label" class="property-label"><g:message code="task.actionType.label" default="Action Type" /></span>

						<span class="property-value" aria-labelledby="actionType-label"><g:fieldValue bean="${taskInstance}" field="actionType"/></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.priority}">
				<li class="fieldcontain">
					<span id="priority-label" class="property-label"><g:message code="task.priority.label" default="Priority" /></span>

						<span class="property-value" aria-labelledby="priority-label"><g:fieldValue bean="${taskInstance}" field="priority"/></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.documentType}">
				<li class="fieldcontain">
					<span id="documentType-label" class="property-label"><g:message code="task.documentType.label" default="Document Type" /></span>

						<span class="property-value" aria-labelledby="documentType-label"><g:fieldValue bean="${taskInstance}" field="documentType"/></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.receivedDate}">
				<li class="fieldcontain">
					<span id="receivedDate-label" class="property-label"><g:message code="task.receivedDate.label" default="Received Date" /></span>

						<span class="property-value" aria-labelledby="receivedDate-label"><g:formatDate date="${taskInstance?.receivedDate}" format="MM/dd/yyyy"/></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.dueDate}">
				<li class="fieldcontain">
					<span id="dueDate-label" class="property-label"><g:message code="task.dueDate.label" default="Due Date" /></span>

						<span class="property-value" aria-labelledby="dueDate-label"><g:formatDate date="${taskInstance?.dueDate}" format="MM/dd/yyyy"/></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.completedDate}">
				<li class="fieldcontain">
					<span id="completedDate-label" class="property-label"><g:message code="task.completedDate.label" default="Completed Date" /></span>

						<span class="property-value" aria-labelledby="completedDate-label"><g:formatDate date="${taskInstance?.completedDate}" format="MM/dd/yyyy"/></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.status}">
				<li class="fieldcontain">
					<span id="status-label" class="property-label"><g:message code="task.status.label" default="Status" /></span>

						<span class="property-value" aria-labelledby="status-label"><g:fieldValue bean="${taskInstance}" field="status"/></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.rootCause}">
				<li class="fieldcontain">
					<span id="rootCause-label" class="property-label"><g:message code="task.rootCause.label" default="Root Cause" /></span>

						<span class="property-value" aria-labelledby="rootCause-label"><g:fieldValue bean="${taskInstance}" field="rootCause"/></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.ptsHour}">
				<li class="fieldcontain">
					<span id="ptsHour-label" class="property-label"><g:message code="task.ptsHour.label" default="PTS Hour" /></span>

						<span class="property-value" aria-labelledby="ptsHour-label"><g:fieldValue bean="${taskInstance}" field="ptsHour"/></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.estimateHour}">
				<li class="fieldcontain">
					<span id="estimateHour-label" class="property-label"><g:message code="task.estimateHour.label" default="Estimate Hour" /></span>

						<span class="property-value" aria-labelledby="estimateHour"><g:fieldValue bean="${taskInstance}" field="estimateHour"/></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.developer}">
				<li class="fieldcontain">
					<span id="developer-label" class="property-label"><g:message code="task.developer.label" default="Developer" /></span>

						<span class="property-value" aria-labelledby="developer-label"><g:fieldValue bean="${taskInstance}" field="developer"/></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.tester}">
				<li class="fieldcontain">
					<span id="tester-label" class="property-label"><g:message code="task.tester.label" default="Tester" /></span>

						<span class="property-value" aria-labelledby="tester-label"><g:fieldValue bean="${taskInstance}" field="tester"/></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.comments}">
				<li class="fieldcontain">
					<span id="comments-label" class="property-label"><g:message code="task.comments.label" default="Comments" /></span>

						<span class="property-value" aria-labelledby="comments-label"><g:fieldValue bean="${taskInstance}" field="comments"/></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.testByGDCFlag}">
				<li class="fieldcontain">
					<span id="testByGDCFlag-label" class="property-label"><g:message code="task.testByGDCFlag.label" default="GDC QA" /></span>

						<span class="property-value" aria-labelledby="testByGDCFlag-label"><g:fieldValue bean="${taskInstance}" field="testByGDCFlag" /></span>

				</li>
				</g:if>

				<g:if test="${taskInstance?.closedFlag}">
				<li class="fieldcontain">
					<span id="closedFlag-label" class="property-label"><g:message code="task.closedFlag.label" default="Closed Flag" /></span>

						<span class="property-value" aria-labelledby="closedFlag-label"><g:fieldValue bean="${taskInstance}" field="closedFlag" /></span>

				</li>
				</g:if>

			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${taskInstance?.id}" />
					<g:link class="edit" action="edit" id="${taskInstance?.id}" params="[projectName:[pN], developer:[dev], tester:[qa], ts:[pts]]"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
